import React, { Component } from 'react';
// import {withRouter1} from "./hoc";
import Son from './Son';

 class News extends Component {

  goUrl=()=>{
    console.log("父组件：this.props",this.props);
}

  render() {
    return (
      <div>
        <h1>高阶组件</h1>
        <input type="button" value="测试" onClick={this.fn} />
        <input type="button" value="父组件的跳转" onClick={this.goUrl} />
        <Son></Son>
      </div>
    )
  }
}

export default News;